﻿using RuoVea.ExEnum;
using RuoVea.ExSugar;
using RuoVea.OmiApi.Config.Entitys;

namespace RuoVea.OmiApi.Config.SeedData;

/// <summary>
/// 系统参数配置表种子数据
/// </summary>
public class SysConfigSeedData : SeedDataEntity<SysConfig>
{
    /// <summary>
    /// 种子数据
    /// </summary>
    /// <returns></returns>
    public IList<SysConfig> HasData()
    {
        return new[]
        {
            new SysConfig{Id=142307070902374, Name="演示环境", Code="dilon_demo_env_flag", Value="false",SysFlag=YesOrNot.Y,Sort=10,  Remark="演示环境的开关,true-打开，false-关闭，如果演示环境开启，则只能读数据不能写数据", IsDisable=0, GroupCode="Default",IsDelete= IsDelete.N},

            new SysConfig{Id=142307070902365, Name="开启验证码", Code="dilon_captcha_open", Value="false",SysFlag=YesOrNot.Y,Sort=20,  Remark="true-打开，false-关闭", IsDisable=0, GroupCode="Default",IsDelete= IsDelete.N},
            new SysConfig{Id=142307070902343, Name="默认密码", Code="dilon_default_password", Value="123456",SysFlag=YesOrNot.Y,Sort=30,  Remark="默认密码", IsDisable=0, GroupCode="Default",IsDelete= IsDelete.N },

            new SysConfig { Id = 142307070905563, Name = "开放注册页面", Code = "enable_register", Value = "true", SysFlag=YesOrNot.Y,Sort=40,  Remark = "开放注册页面 true-打开，false-关闭", IsDisable = 0, GroupCode = "Default" ,IsDelete= IsDelete.N},
            new SysConfig { Id = 142307070905564, Name = "开放找回密码页面", Code = "enable_forgot_password", Value = "true", SysFlag=YesOrNot.Y,Sort=50,  Remark = "开放找回密码页面 true-打开，false-关闭", IsDisable = 0, GroupCode = "Default",IsDelete= IsDelete.N },

             new SysConfig { Id = 142307070905565, Name = "开启水印", Code = "sys_watermark", Value = "true", SysFlag=YesOrNot.Y,Sort=60,  Remark = "开启水印 true-打开，false-关闭", IsDisable = 0, GroupCode = "Default",IsDelete= IsDelete.N },
             new SysConfig { Id = 142307070905566, Name = "水印内容", Code = "sys_web_watermark", Value = "RuoVea.Web", SysFlag=YesOrNot.Y, Sort=70, Remark = "水印内容", IsDisable = 0, GroupCode = "Default",IsDelete= IsDelete.N },

             new SysConfig{ Id=1300000000141, Name="记录操作日志", Code="sys_oplog", Value="true", SysFlag=YesOrNot.Y, Remark="是否记录操作日志", Sort=80, GroupCode= "Default", CreateTime=DateTime.Parse("2022-02-10 00:00:00") ,IsDelete= IsDelete.N},
        };
    }
}